const {
    isMatch
} = require('./../通配符匹配');
const {
    TestClass
} = require('./../utils/TestClass');

let isMatchSail = (arr) => {
    return isMatch(arr[0],arr[1]);
}

new TestClass(['aa','a'],false,isMatchSail);
new TestClass(['adceb','a*b'],true,isMatchSail);
new TestClass(['aa','*'],true,isMatchSail);
new TestClass(['cb','?a'],false,isMatchSail);
new TestClass(['acdcb','a*c?b'],false,isMatchSail);


new TestClass([
    "aaaabaaaabbbbaabbbaabbaababbabbaaaababaaabbbbbbaabbbabababbaaabaabaaaaaabbaabbbbaababbababaabbbaababbbba",
    "*****b*aba***babaa*bbaba***a*aaba*b*aa**a*b**ba***a*a*"
],true,isMatchSail);
new TestClass([
    "abcabczzzde",
    "*abc???de*"
],true,isMatchSail)
new TestClass(
    ["mississippi",
        "m??*ss*?i*pi"],
    false,isMatchSail
)


new TestClass([
    "b",
    "*?*?*"
],false,isMatchSail)

new TestClass([
    'hi',
    '*?'
],true,isMatchSail)
new TestClass([
    'adceb',
    '*a*b'
],true,isMatchSail)

new TestClass([
    "","*****"
],true,isMatchSail)

new TestClass([
    "baaaa",
    "*aaa"
],true,isMatchSail)

new TestClass([
    "bbbbbbbabbaabbabbbbaaabbabbabaaabbababbbabbbabaaabaab",
    "b*b*ab**ba*b**b***bba"
],false,isMatchSail)

new TestClass([
    "abaabaaaabbabbaaabaabababbaabaabbabaaaaabababbababaabbabaabbbbaabbbbbbbabaaabbaaaaabbaabbbaaaaabbbabb",
    "ab*aaba**abbaaaa**b*b****aa***a*b**ba*a**ba*baaa*b*ab*"
],false,isMatchSail)
